﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ANMCMaster.Master" AutoEventWireup="true" CodeBehind="DailyWord.aspx.cs" Inherits="AllNations.UI.DailyWord" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ANHeaderContent" runat="server">
    <script type="text/javascript">
        function StartNewWeek() {
            var frm = document.getElementById('<%= panelAddNewFile.ClientID %>');
            if (frm.style["display"] == "none")
                frm.style["display"] = "block";
            else
                frm.style["display"] = "none";
        }

        function AddNewQuestion() {
            var frm = document.getElementById('<%= panelQuestionForm.ClientID %>');
            if (frm.style["display"] == "none")
                frm.style["display"] = "block";
            else
                frm.style["display"] = "none";
        }
    </script>
    <style media="all" type="text/css">
        .TableHeader { border: 1px solid #999; padding: 4px; }
        .TableItem { border: 1px solid #999; padding: 4px; }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ANBodyContent" runat="server">
    <article class="node static-page content">
        <div style="position: relative; z-index: 1000;">
            <telerik:RadTabStrip ID="ViewTabs" runat="server" AutoPostBack="true" MultiPageID="PageViews" SelectedIndex="0">
                <Tabs>
                    <telerik:RadTab Text="금주" PageViewID="CurrentWeekView" />
                    <telerik:RadTab Text="History" PageViewID="PreviousWeeksView" />
                    <telerik:RadTab Text="Administrator" PageViewID="AdminViews" />
                </Tabs>
            </telerik:RadTabStrip>
        </div>
        <div style="position: relative; top: -1px; z-index: 999">
            <telerik:RadMultiPage ID="PageViews" runat="server" SelectedIndex="0" RenderSelectedPageOnly="true" BorderWidth="1" BorderStyle="Solid" BorderColor="#888888" >
                <telerik:RadPageView ID="CurrentWeekView" runat="server">
                    <div style="padding: 10px">
                        <asp:MultiView ID="CurrentDailywordView" runat="server" ActiveViewIndex="0">
                            <asp:View ID="emptyView" runat="server">
                                There are currently no daily word published.  Please try again later.
                            </asp:View>
                            <asp:View ID="readView" runat="server">
                                <div style="margin-bottom: 10px;">
                                    <h2><asp:Label ID="lblCurrentWeekTitle" runat="server" /></h2>
                                </div>
                                <table class="TablePad4WithBorder">
                                    <tr>
                                        <td>&nbsp;</td>
                                        <td>날짜</td>
                                        <td>주제</td>
                                        <td>문제</td>
                                    </tr>
                                    <tr>
                                        <td>월</td>
                                        <td><asp:Label ID="lblDate1" runat="server" /></td>
                                        <td><asp:Label ID="lblTitle1" runat="server" /></td>
                                        <td rowspan="7" style="vertical-align: top">
                                            <div style="margin-bottom: 20px;">
                                                <asp:Label ID="lblReadFaithfully" runat="server" Text="Have you read this week's portion faithfully?" />
                                                <asp:RadioButtonList ID="rblReadFaithfully" runat="server" ValidationGroup="vgAnswers" RepeatColumns="2" BorderStyle="None" RepeatLayout="Flow">
                                                    <asp:ListItem Text="예" Value="1" />
                                                    <asp:ListItem Text="아니요" Value="0" />
                                                </asp:RadioButtonList>
                                                <asp:RequiredFieldValidator ID="rfvReadFaithfully" runat="server" ControlToValidate="rblReadFaithfully" Text="*Required" Display="Dynamic" ValidationGroup="vgAnswers" ForeColor="Red" /></div>
                                            <asp:Repeater ID="rptCurrentQuestions" runat="server">
                                                <ItemTemplate>
                                                    <asp:HiddenField ID="hidDailywordQuestionId" runat="server" Value='<%# Eval("DailywordQuestionId") %>' />
                                                    <div style="margin-bottom: 20px;">
                                                        <div style="margin-bottom: 5px;">
                                                            <%# Eval("QuestionNum") %>. <%# Eval("QuestionTxt") %>
                                                            <asp:RequiredFieldValidator ID="rfvChoices" runat="server" ControlToValidate="rblChoices" ValidationGroup="vgAnswers" Text="*Required" ForeColor="Red" /></div>
                                                        <asp:RadioButtonList ID="rblChoices" runat="server" DataSource='<%# Eval("Choices") %>' DataTextField="ChoiceTxt" DataValueField="ChoiceNum" BorderStyle="None" RepeatLayout="Flow" OnDataBound="rblChoices_DataBound" ValidationGroup="vgAnswers" />
                                                    </div>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                            <div style="margin-bottom: 20px;">
                                                Reflection:<asp:RequiredFieldValidator ID="rfvReflection" runat="server" ControlToValidate="txtReflection" Text="*Required" Display="Dynamic" ValidationGroup="vgAnswers" ForeColor="Red" /><br />
                                                <asp:TextBox ID="txtReflection" runat="server" Rows="5" Width="500" TextMode="MultiLine" CssClass="FieldR2" ValidationGroup="vgAnswers" />
                                            </div>
                                            <asp:Panel ID="panelScore" runat="server">
                                                <strong>점수: <asp:Label ID="lblScore" runat="server" /></strong>
                                            </asp:Panel>
                                            <asp:Button ID="btSave" runat="server" Text="Save" OnClick="btSave_Click" UseSubmitBehavior="false" CausesValidation="false" />
                                            <asp:Button ID="btSubmit" runat="server" Text="Submit" OnClick="btSubmit_Click" UseSubmitBehavior="false" CausesValidation="true" ValidationGroup="vgAnswers" />
                                            <asp:Label ID="lblSaveUserInputStatus" runat="server" ForeColor="Red" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>화</td>
                                        <td><asp:Label ID="lblDate2" runat="server" /></td>
                                        <td><asp:Label ID="lblTitle2" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <td>수</td>
                                        <td><asp:Label ID="lblDate3" runat="server" /></td>
                                        <td><asp:Label ID="lblTitle3" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <td>목</td>
                                        <td><asp:Label ID="lblDate4" runat="server" /></td>
                                        <td><asp:Label ID="lblTitle4" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <td>금</td>
                                        <td><asp:Label ID="lblDate5" runat="server" /></td>
                                        <td><asp:Label ID="lblTitle5" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <td>토</td>
                                        <td><asp:Label ID="lblDate6" runat="server" /></td>
                                        <td><asp:Label ID="lblTitle6" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <td>일</td>
                                        <td><asp:Label ID="lblDate7" runat="server" /></td>
                                        <td><asp:Label ID="lblTitle7" runat="server" /></td>
                                    </tr>
                                </table>
                            </asp:View>
                        </asp:MultiView>
                    </div>
                </telerik:RadPageView>
                <telerik:RadPageView ID="PreviousWeeksView" runat="server">
                    <div style="padding: 10px">
                        <asp:Repeater ID="rptPreviousDailyWord" runat="server">
                            <HeaderTemplate>
                                <table class="TablePad4WithBorder">
                                  <tr>
                                    <td>Week #</td>
                                    <td>Dates</td>
                                    <td>Read?</td>
                                    <td>Quiz Score</td>
                                  </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                  <tr>
                                    <td><%# Eval("WeeknumId") %></td>
                                    <td><%# string.Format("{0} - {1}", Eval("WeekStart", "{0:d}"), Eval("WeekEnd", "{0:d}")) %></td>
                                    <td><%# Eval("UserStatus.ReadInd") %></td>
                                    <td><%# string.Format("{0}/{1}", Eval("UserStatus.ScoreNum"), Eval("UserStatus.PerfectScoreNum")) %></td>
                                  </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                </telerik:RadPageView>
                <telerik:RadPageView ID="AdminViews" runat="server">
                    <div style="padding: 10px">
                        <asp:HiddenField ID="hidSelectedDailyWordId" runat="server" />
                        <telerik:RadMultiPage ID="EditorViews" runat="server" RenderSelectedPageOnly="true" SelectedIndex="0">
                            <telerik:RadPageView ID="ListView" runat="server">
                                <asp:Panel ID="panelAdmin" runat="server" GroupingText="<div style='margin: 10px 0px'><a href='javascript:StartNewWeek()'><img src='/Images/btn-plus.gif' border='0' align='absmiddle' style='float: left'/>&nbsp;<strong>Start new week</strong></a></div>">
                                    <asp:Panel ID="panelAddNewFile" runat="server" style="display:none">
                                        <table class="TablePad4">
                                            <tr>
                                                <td>Week #:</td>
                                                <td>
                                                    <asp:TextBox ID="txtWeeknumId" runat="server" Width="40px" MaxLength="2" CssClass="FieldR2" ValidationGroup="vgNewWeek" />
                                                    <asp:RequiredFieldValidator ID="rfvWeeknumId" runat="server" ControlToValidate="txtWeeknumId" ValidationGroup="vgNewWeek" ErrorMessage="*Required" ForeColor="Red" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>Week start date:</td>
                                                <td>
                                                    <telerik:RadDatePicker ID="rdpWeekStart" runat="server" ValidationGroup="vgNewWeek" />
                                                    <asp:RequiredFieldValidator ID="rfvWeekStart" runat="server" ControlToValidate="rdpWeekStart" ValidationGroup="vgNewWeek" ErrorMessage="*Required" ForeColor="Red" /></td>
                                            </tr>
                                            <tr>
                                                <td>Assignments:</td>
                                                <td>
                                                    <table class="TablePad4">
                                                        <tr>
                                                            <td>월:</td>
                                                            <td><asp:TextBox ID="txtMonday" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeek" />
                                                                <asp:RequiredFieldValidator ID="rfvMonday" runat="server" ControlToValidate="txtMonday" ValidationGroup="vgNewWeek" ErrorMessage="*Required" ForeColor="Red" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td>화:</td>
                                                            <td><asp:TextBox ID="txtTuesday" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeek" />
                                                                <asp:RequiredFieldValidator ID="rfvTuesday" runat="server" ControlToValidate="txtTuesday" ValidationGroup="vgNewWeek" ErrorMessage="*Required" ForeColor="Red" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td>수:</td>
                                                            <td><asp:TextBox ID="txtWednesday" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeek" />
                                                                <asp:RequiredFieldValidator ID="rfvWednesday" runat="server" ControlToValidate="txtWednesday" ValidationGroup="vgNewWeek" ErrorMessage="*Required" ForeColor="Red" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td>목:</td>
                                                            <td><asp:TextBox ID="txtThursday" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeek" />
                                                                <asp:RequiredFieldValidator ID="rfvThursday" runat="server" ControlToValidate="txtThursday" ValidationGroup="vgNewWeek" ErrorMessage="*Required" ForeColor="Red" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td>금:</td>
                                                            <td><asp:TextBox ID="txtFriday" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeek" />
                                                                <asp:RequiredFieldValidator ID="rfvFriday" runat="server" ControlToValidate="txtFriday" ValidationGroup="vgNewWeek" ErrorMessage="*Required" ForeColor="Red" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td>토:</td>
                                                            <td><asp:TextBox ID="txtSaturday" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeek" Text="이번 주 읽은 성경 복습 및 못 읽은 부분 읽고 답하기" />
                                                                <asp:RequiredFieldValidator ID="rfvSaturday" runat="server" ControlToValidate="txtSaturday" ValidationGroup="vgNewWeek" ErrorMessage="*Required" ForeColor="Red" /></td>
                                                        </tr>
                                                        <tr>
                                                            <td>주일:</td>
                                                            <td><asp:TextBox ID="txtSunday" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeek" Text="주일 예배에 참석하고, 다음 주 성경 읽기 계획 점검하기" />
                                                                <asp:RequiredFieldValidator ID="rfvSunday" runat="server" ControlToValidate="txtSunday" ValidationGroup="vgNewWeek" ErrorMessage="*Required" ForeColor="Red" /></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>&nbsp;</td>
                                                <td>
                                                    <asp:Button ID="btSaveNewWeek" runat="server" Text="Save" OnClick="btSaveNewWeek_Click" ValidationGroup="vgNewWeek" /><br />
                                                    <asp:Label ID="lblErrorMesg" runat="server" ForeColor="Red" />
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                </asp:Panel>
                        
                                <asp:GridView ID="gridAllDailyWords" runat="server" AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:BoundField DataField="WeeknumId" HeaderText="Week#" HeaderStyle-CssClass="TableHeader" ItemStyle-CssClass="TableItem" />
                                        <asp:BoundField DataField="WeekStart" HeaderText="Week start date" HeaderStyle-CssClass="TableHeader" ItemStyle-CssClass="TableItem" />
                                        <asp:BoundField DataField="WeekEnd" HeaderText="Week end date" HeaderStyle-CssClass="TableHeader" ItemStyle-CssClass="TableItem" />
                                        <asp:BoundField DataField="Status" HeaderText="Status" HeaderStyle-CssClass="TableHeader" ItemStyle-CssClass="TableItem" />
                                        <asp:TemplateField HeaderText="Action" HeaderStyle-CssClass="TableHeader" ItemStyle-CssClass="TableItem">
                                            <ItemTemplate>
                                                <asp:Panel ID="panelDraft" runat="server" Visible='<%# !(bool)Eval("PublishedInd") %>'>
                                                    <asp:LinkButton ID="lnkEdit" runat="server" CommandArgument='<%# Eval("DailyWordId") %>' OnClick="lnkEdit_Click"><asp:Image runat="server" ImageUrl="~/Images/edit.gif" ImageAlign="AbsMiddle" style="float: left" /><span style="float: left">&nbsp;Edit</span></asp:LinkButton>
                                                    <span style="float: left">&nbsp;|&nbsp;</span>
                                                    <asp:LinkButton ID="lnkPublish" runat="server" CommandArgument='<%# Eval("DailyWordId") %>' OnClick="lnkPublish_Click"><asp:Image runat="server" ImageUrl="~/Images/save_as_16x16.png" ImageAlign="AbsMiddle" style="float: left" /><span style="float: left">&nbsp;Publish</span></asp:LinkButton>
                                                    <span style="float: left">&nbsp;|&nbsp;</span>
                                                    <asp:LinkButton ID="lnkDelete" runat="server" CommandArgument='<%# Eval("DailyWordId") %>' OnClientClick="if (!confirm('You are about to delete un-published daily word record.  Click OK to continue.')) return false;" OnClick="lnkDelete_Click"><asp:Image runat="server" ImageUrl="~/Images/btn-delete.gif" ImageAlign="AbsMiddle" style="float: left" /><span style="float: left">&nbsp;Delete</span></asp:LinkButton>
                                                </asp:Panel>
                                                <asp:Panel ID="panelPublished" runat="server" Visible='<%# (bool)Eval("PublishedInd") %>'>
                                                    <asp:LinkButton ID="lnkViewDetail" runat="server" CommandArgument='<%# Eval("DailyWordId") %>'><asp:Image ID="Image1" runat="server" ImageUrl="~/Images/btn-plus.gif" ImageAlign="AbsMiddle" style="float: left" /><span style="float: left">&nbsp;View detail</span></asp:LinkButton>
                                                    <span style="float: left">&nbsp;|&nbsp;</span>
                                                    <asp:LinkButton ID="lnkReview" runat="server" CommandArgument='<%# Eval("DailyWordId") %>'><asp:Image ID="Image2" runat="server" ImageUrl="~/Images/review-icon.png" ImageAlign="AbsMiddle" style="float: left" /><span style="float: left">&nbsp;Review status</span></asp:LinkButton>
                                                </asp:Panel>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </telerik:RadPageView>
                            <telerik:RadPageView ID="EditView" runat="server">
                                <div style="margin-bottom: 10px;">
                                    <h2><asp:Label ID="lblWeekNumId" runat="server" /></h2>
                                </div>
                                <table class="TablePad4WithBorder">
                                    <tr>
                                        <td>Date</td>
                                        <td>Assignments</td>
                                        <td>Questionaries</td>
                                    </tr>
                                    <tr>
                                        <td><asp:Label ID="lblMondayDate" runat="server" /></td>
                                        <td><asp:TextBox ID="txtMondayUpd" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeekUpd" />
                                            <asp:RequiredFieldValidator ID="rfvMondayUpd" runat="server" ControlToValidate="txtMondayUpd" ValidationGroup="vgNewWeekUpd" ErrorMessage="*Required" ForeColor="Red" /></td>
                                        <td rowspan="7" style="vertical-align: top">
                                            <asp:Panel ID="panelNewQuestion" runat="server" GroupingText="<div style='margin: 10px 0px'><a href='javascript:AddNewQuestion()'><img src='/Images/btn-plus.gif' border='0' align='absmiddle' style='float: left'/>&nbsp;<strong>Add new question</strong></a></div>">
                                                <asp:Panel ID="panelQuestionForm" runat="server" style="display:none">
                                                    <table class="TablePad4">
                                                        <tr>
                                                            <td>Ques#:</td>
                                                            <td>
                                                                <asp:TextBox ID="txtQuestionNum" runat="server" Width="40px" MaxLength="2" CssClass="FieldR2" ValidationGroup="vgQuestion" />
                                                                <asp:RequiredFieldValidator ID="rfvQuestionNum" runat="server" ControlToValidate="txtQuestionNum" ValidationGroup="vgQuestion" ErrorMessage="*Required" ForeColor="Red" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>Question:</td>
                                                            <td>
                                                                <asp:TextBox ID="txtQuestionTxt" runat="server" Width="350px" TextMode="MultiLine" Rows="2" MaxLength="1000" CssClass="FieldR2" ValidationGroup="vgQuestion" />
                                                                <asp:RequiredFieldValidator ID="rfvQuestionTxt" runat="server" ControlToValidate="txtQuestionTxt" ValidationGroup="vgQuestion" ErrorMessage="*Required" ForeColor="Red" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                Choices:<br /><br />
                                                                Correct answer:<br />
                                                                <asp:TextBox ID="txtCorrectAnswer" runat="server" Width="20px" MaxLength="1" CssClass="FieldR2" ValidationGroup="vgQuestion" />
                                                                <asp:RequiredFieldValidator ID="rfvCorrectAnswer" runat="server" ControlToValidate="txtCorrectAnswer" ValidationGroup="vgQuestion" ErrorMessage="*Required" ForeColor="Red" />
                                                            </td>
                                                            <td>
                                                                <table class="TablePad4">
                                                                    <tr>
                                                                        <td>1:</td>
                                                                        <td style="white-space: nowrap"><asp:TextBox ID="txtChoice1" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeek" />
                                                                            <asp:RequiredFieldValidator ID="rfvChoice1" runat="server" ControlToValidate="txtChoice1" ValidationGroup="vgNewWeek" ErrorMessage="*Required" ForeColor="Red" /></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>2:</td>
                                                                        <td style="white-space: nowrap"><asp:TextBox ID="txtChoice2" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeek" />
                                                                            <asp:RequiredFieldValidator ID="rfvChoice2" runat="server" ControlToValidate="txtChoice2" ValidationGroup="vgNewWeek" ErrorMessage="*Required" ForeColor="Red" /></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>3:</td>
                                                                        <td style="white-space: nowrap"><asp:TextBox ID="txtChoice3" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeek" />
                                                                            <asp:RequiredFieldValidator ID="rfvChoice3" runat="server" ControlToValidate="txtChoice3" ValidationGroup="vgNewWeek" ErrorMessage="*Required" ForeColor="Red" /></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>4:</td>
                                                                        <td style="white-space: nowrap"><asp:TextBox ID="txtChoice4" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeek" />
                                                                            <asp:RequiredFieldValidator ID="rfvChoice4" runat="server" ControlToValidate="txtChoice4" ValidationGroup="vgNewWeek" ErrorMessage="*Required" ForeColor="Red" /></td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>&nbsp;</td>
                                                            <td>
                                                                <asp:Button ID="btSaveQuestion" runat="server" Text="Save" OnClick="btSaveQuestion_Click" ValidationGroup="vgQuestion" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                            </asp:Panel>
                                            <asp:Repeater ID="rptQuestions" runat="server">
                                                <ItemTemplate>
                                                    <div style="margin-bottom: 20px;">
                                                        <div style="margin-bottom: 5px;"><div style="float: left"><%# Eval("QuestionNum") %>. <%# Eval("QuestionTxt") %></div><div style="float: left; padding-left: 10px;"><asp:LinkButton ID="lnkDeleteQuestion" runat="server" CommandArgument='<%# Eval("DailywordQuestionId") %>' OnClick="lnkDeleteQuestion_Click" OnClientClick="if (!confirm('You are about to delete the question, click OK to continue.')) return false;"><asp:Image runat="server" ImageUrl="~/Images/btn-delete.gif" ImageAlign="AbsMiddle" style="float: left"/>&nbsp;Delete</asp:LinkButton></div><div style="clear: both"/></div>
                                                        <div style="margin-left: 20px;"><%# Eval("AnswerForAdminView") %></div>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td><asp:Label ID="lblTuesdayDate" runat="server" /></td>
                                        <td><asp:TextBox ID="txtTuesdayUpd" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeekUpd" />
                                            <asp:RequiredFieldValidator ID="rfvTuesdayUpd" runat="server" ControlToValidate="txtTuesdayUpd" ValidationGroup="vgNewWeekUpd" ErrorMessage="*Required" ForeColor="Red" /></td>
                                    </tr>
                                    <tr>
                                        <td><asp:Label ID="lblWednesdayDate" runat="server" /></td>
                                        <td><asp:TextBox ID="txtWednesdayUpd" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeekUpd" />
                                            <asp:RequiredFieldValidator ID="rfvWednesdayUpd" runat="server" ControlToValidate="txtWednesdayUpd" ValidationGroup="vgNewWeekUpd" ErrorMessage="*Required" ForeColor="Red" /></td>
                                    </tr>
                                    <tr>
                                        <td><asp:Label ID="lblThursdayDate" runat="server" /></td>
                                        <td><asp:TextBox ID="txtThursdayUpd" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeekUpd" />
                                            <asp:RequiredFieldValidator ID="rfvThursdayUpd" runat="server" ControlToValidate="txtThursdayUpd" ValidationGroup="vgNewWeekUpd" ErrorMessage="*Required" ForeColor="Red" /></td>
                                    </tr>
                                    <tr>
                                        <td><asp:Label ID="lblFridayDate" runat="server" /></td>
                                        <td><asp:TextBox ID="txtFridayUpd" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeekUpd" />
                                            <asp:RequiredFieldValidator ID="rfvFridayUpd" runat="server" ControlToValidate="txtFridayUpd" ValidationGroup="vgNewWeekUpd" ErrorMessage="*Required" ForeColor="Red" /></td>
                                    </tr>
                                    <tr>
                                        <td><asp:Label ID="lblSaturdayDate" runat="server" /></td>
                                        <td><asp:TextBox ID="txtSaturdayUpd" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeekUpd" />
                                            <asp:RequiredFieldValidator ID="rfvSaturdayUpd" runat="server" ControlToValidate="txtSaturdayUpd" ValidationGroup="vgNewWeekUpd" ErrorMessage="*Required" ForeColor="Red" /></td>
                                    </tr>
                                    <tr>
                                        <td><asp:Label ID="lblSundayDate" runat="server" /></td>
                                        <td><asp:TextBox ID="txtSundayUpd" runat="server" TextMode="MultiLine" Width="350px" Rows="2" ValidationGroup="vgNewWeekUpd" />
                                            <asp:RequiredFieldValidator ID="rfvSundayUpd" runat="server" ControlToValidate="txtSundayUpd" ValidationGroup="vgNewWeekUpd" ErrorMessage="*Required" ForeColor="Red" /></td>
                                    </tr>
                                </table>
                                <asp:Button ID="btSaveAssignments" runat="server" CausesValidation="true" ValidationGroup="vgNewWeekUpd" Text="Update" UseSubmitBehavior="false" OnClick="btSaveAssignments_Click" />
                                <asp:Button ID="btBackToListFromEditView" runat="server" Text="Back to list" OnClick="btBackToListFromEditView_Click" CausesValidation="false" UseSubmitBehavior="false" />
                                <asp:Label ID="lblUpdateStatus" runat="server" ForeColor="Red" />
                            </telerik:RadPageView>
                        </telerik:RadMultiPage>
                    </div>
                </telerik:RadPageView>
            </telerik:RadMultiPage>
        </div>
    </article>
</asp:Content>
